package com.acme.task5;

public class TextModifier {
	public static void main(String[] args) {
		// check number of arguments:
        if (args.length == 1) {
            String str = args[0];
            for (int i = 0; i < str.length(); i++) {
                char charAtIndex = str.charAt(i);
                // do the task at labguide. Note that String is not a simple char array, but an object
                if (!Character.isDigit(charAtIndex)) {
                    switch (charAtIndex) {
                        case '+':
                        case '-':
                            System.out.print(charAtIndex);
                         default:
                             System.out.print(charAtIndex);
                    }
                }
            }
        }
        else {
            System.out.println("Wrong number of arguments.");
        }
	}
}